package workspace.teaweb.base.exception;



import lombok.Getter;
import workspace.teaweb.base.response.StatusCode;

/*自定义的业务层异常类*/
public class ServiceException extends RuntimeException {
    @Getter
    private StatusCode statusCode;

    //alt + insert 一键快捷插入构造方法
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }

}
